import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';

export default async function a004(fd: IFeidaoAiBrowserComponent) {
	// todo
	const chk_list = fd.data.node.querySelectorAll('[data-id="chk-list"]:checked');
	console.log(chk_list);
	const chkList = Array.from(chk_list) as HTMLInputElement[];
	const arr = chkList.map((n) => {
		return n.getAttribute('data-no');
	});
	const nos = arr as string[];
	console.log('nos', nos);
	fire('zj-000010', 'a001', nos);
}
